package com.kotlinvben.vo

import com.kotlinvben.enumeration.Status
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import jakarta.validation.constraints.Size

data class DepartmentUpdateVO(
    @field:NotBlank(message = "部门名称不能为空")
    @field:Size(min = 2, max = 50, message = "部门名称长度必须在2-50个字符之间")
    val name: String,

    @field:Size(max = 200, message = "备注长度不能超过200个字符")
    val remarks: String? = null,

    val pid: Long? = null,

    @field:NotNull(message = "状态不能为空")
    var status: Int = Status.ENABLED.code,

    @field:NotNull(message = "排序编号不能为空")
    val sort: Int
) 